package edu.sctu.zhengsenwen.month201505.day20150504;



/**
 * Created by user15 on 2015/5/6.
 */
public class NewDog {
    public void newDog(InterfaceDog text){
        FirstDog firstdog = new FirstDog();
        firstdog.getColor();
        firstdog.getSize();
        firstdog.getAction();
        text.getWorth(firstdog.color,firstdog.size,firstdog.action);


        SecondDog seconddog = new SecondDog();
        seconddog.getColor();
        seconddog.getSize();
        seconddog.getAction();
        text.getWorth(seconddog.color,seconddog.size,seconddog.action);


        ThirdDog thirddog = new ThirdDog();
        thirddog.getColor();
        thirddog.getSize();
        thirddog.getAction();
        text.getWorth(thirddog.color,thirddog.size,thirddog.action);

    }
}
